Use SQLite Instead of Postgres #2
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Published to IPFS:
https://ipfs.io/ipfs/QmYzXYTrbWaWuHwa3kR7ftFZQSMPZZwTD9oNbdUYABrzLQ/
This PR eliminates the need for postgres and reduces the package size from 477Mb to 320Mb (see above IPFS hash)
Its also easier to include a backup DB (since it can now be uploaded as a file) - This was beneficial because one can attach a backup (constructed locally) and run the service against a Full Node (with pruned history).
The next step to bundle size reduction is to switch from rindexer to arak or some other tiny event indexing image.
This PR is based on a chain of open PRs. Namely
Subindexer:
PR: deluXtreme/subindexer#23
Branch Release: https://github.com/deluXtreme/subindexer/pkgs/container/subindexer/582626299?tag=v0.0.6-sqlite
Rindexer:
PR: joshstevens19/rindexer#346
Branch Release: https://github.com/bh2smith/rindexer/pkgs/container/rindexer